package br.net.woodstock.tickettoride.struts2.web.security;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.context.WebApplicationContext;

import br.net.woodstock.rockframework.web.struts2.Struts2Constants;
import br.net.woodstock.tickettoride.spring.web.AbstractApplicationAction;

@Controller
@Scope(value = WebApplicationContext.SCOPE_REQUEST)
public class Logout extends AbstractApplicationAction {

	private static final long	serialVersionUID	= -3457665625348011840L;

	@Override
	public String execute() {
		SecurityUtils.invalidateSession();
		return Struts2Constants.SUCCESS;
	}

}
